<!-- <style>
#works_pic_con{
	position:relative;
}
#works_pic_con img{
	margin-left:20px;
	width:100px;
	height:100px;
}
#works_pic_con span{
	position:relative;
	right:900px;
}
#works_video_con video{
	margin-left:20px;
	width:200px;
	height:200px;
}
#works_video_con span{
	position:relative;
	right:800px;
}
</style> -->
<form action="" method="post" enctype="multipart/form-data" class="form-horizontal">

	<div class="form-group">
		<label class="col-sm-1 control-label">视频标题</label>
		<div class="col-sm-6">
			<input type="text" name="video_title" value="<?= $info['video_title']?>" required>
		</div>
	</div>


	<div class="form-group">
		<label class="col-sm-1 control-label">封面图</label>
		<div class="form-group ">
            <div id="works_pic_con">
            </div>
            <div id="works_pic_btn">
                <?php if(!empty($info['pic'])):?>
                <img src="<?= $info['pic'] ?>?x-oss-process=image/resize,m_fill,h_112,w_200">
                <?php else:?>
                <img  class="img-thumbnail" style="margin-left: 1%;" src="/static/img/default.png"/>
                <?php endif;?>
            </div>
        </div>
	</div>

	<div class="form-group">
		<label class="col-sm-1 control-label">视频</label>
		<div class="form-group">
        	<div id="works_video_con"></div>
        	<button type="button" id="works_video_btn" class="col-sm-2" style="width:100px;margin-left:10px;background: #325894;color: #FFFFFF; padding: 3px 20px; border-radius: 14px;">上传视频</button>
		</div>																
	</div>


	<div class="form-group">
		<label class="col-sm-1 control-label">摘要</label>
		<div class="col-sm-6">
			<textarea name="desc" class="form-control" rows="4"><?= $info['desc']?></textarea>
		</div>
	</div>

	<div class="form-group">
		<div class="col-sm-offset-1 col-sm-3">
			<button type="type" class="btn btn-primary">提交</button>
		</div>
	</div>
</form>
<?php include DOCROOT.'/views/plupload.php';?>
<script>
$(function(){
	//上传作品图片
    init_upload('works_pic_btn','works_pic_con','img');
    //上传作品视频
    init_upload('works_video_btn','works_video_con','video');
})
</script>
<style>
.up-item{float:left;width:160px;margin:5px;position:relative}
.up-item .close{position:absolute;right:3px;top:0;}
.up-item .img-thumbnail{width:160px;}
.up-item .progress{position:absolute;left:0;bottom:0;width:100%;height:8px;margin:0;display:none}
</style>